package com.wzh.rabbitmq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: WZH
 * @time: 2021/6/16 15:22
 */
@Component
@RabbitListener(queues = "fanoutQueue2")
public class FanoutCustomer_02 {

    @RabbitHandler
    public void receive(String content){
        System.out.println("FanoutCustomer_02："+content);
    }
}